<?
    include ('config.php');
    include ('functions.php');
    $uid = $_SESSION['k_uid'];
    $username = get_username($uid);
    $lvl = get_lvl($uid);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        if (isset($_SESSION['k_username'])) {
                echo "<b>$username</b> ($lvl) | <a href=\"logout.php\">Cerrar Sesión</a>";
        }else{
                echo '<a href="login.php" title="Acceder a tu cuenta">Acceder</a>';
        }
        ?>
    </body>
</html>
